Skip to content

refactor: remove all receiver references to bundled config host files #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

obs-gh-mattcotter
Copy link
Collaborator

@obs-gh-mattcotter obs-gh-mattcotter commented Jun 25, 2025

Description

OB-42646 Remove all receiver references to bundled config fragments. These files are going away in favor of adding them to the agent binary.

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@obs-gh-alexlew
Copy link
Collaborator

I think this does drive the host monitoring app's resource dataset which customers have complained about breaking before

@obs-gh-mattcotter obs-gh-mattcotter force-pushed the OB-42646-deprecate-filestats branch from bceb622 to 4f27277 Compare June 25, 2025 22:07
Base automatically changed from mc/mac-snap to main June 26, 2025 15:55
@obs-gh-mattcotter obs-gh-mattcotter force-pushed the OB-42646-deprecate-filestats branch from 4f27277 to 088e3d2 Compare June 26, 2025 16:11
@obs-gh-mattcotter obs-gh-mattcotter changed the title refactor: remove the filestats/agent receiver, deprecate the associated pipeline refactor: remove all receiver references to bundled config host files Jun 26, 2025
Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@obs-gh-mattcotter obs-gh-mattcotter force-pushed the OB-42646-deprecate-filestats branch from 088e3d2 to 78f61a0 Compare June 26, 2025 16:31
@obs-gh-mattcotter
Copy link
Collaborator Author

I think this does drive the host monitoring app's resource dataset which customers have complained about breaking before

Good point! I put this receiver back and directed it at the agent config. I tested this locally with the otel app and it does work; it successfully tracks the host as a resource.

@@ -160,7 +152,7 @@ receivers:
storage: file_storage
filestats/agent:
collection_interval: 5m
include: /etc/observe-agent/connections/common/base.yaml.tmpl
include: /etc/observe-agent/observe-agent.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should always exist right? unless the user for some reason manually deletes it after install

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the expanded env var, so the receiver isn't tied to this path specifically. There is a weird way that you can run the agent with no observe agent config file:

  1. install
  2. delete the config at the default path
  3. start the agent using env var overrides for the required fields
    but I think that's pretty unlikely and if anyone is doing that, then it's possible that their current app is broken anyway.

@obs-gh-mattcotter obs-gh-mattcotter merged commit 768f0d7 into main Jun 27, 2025
12 checks passed
@obs-gh-mattcotter obs-gh-mattcotter deleted the OB-42646-deprecate-filestats branch June 27, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants